<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>JavaScript中字符串的操作方法</h1>
		<script type="text/javascript">
			const content = "我是小叶，哈哈哈哈，测试字符串的呀"
			console.log("查找字符串",content.indexOf('小'));
			let newcontent = content.substr(content.indexOf('小'),content.lastIndexOf('哈')-1)
			console.log(newcontent);
			
			let arrcontent = content.split('，')
			console.log(arrcontent);
		</script>
	</body>
</html>
